package cn.cstech.aijia.ui.base.title;

import android.view.View;
import android.view.View.OnClickListener;

public interface IActionTitleBar {
	public enum ErrorType {
		EMPTYVIEW, ERRORNET, ERRORRES, ERRORTOP
	}

	public void setTitleText(String title);

	public void setTitleText(int title);

	public void setLeftButton(String btnText, View.OnClickListener lsn);

	public void setLeftButton(int btnText, View.OnClickListener lsn);

	public void setLeftImageView(int imageRes, View.OnClickListener lsn);

	public void setRightButton(String btnText, View.OnClickListener lsn);

	public void hideRightButton();

	public void showTitleBar(boolean show);

	public void setRightButton(int btnText, View.OnClickListener lsn);

	public void setRightImageView(int imageRes, View.OnClickListener lsn);

	public void showErrorView(ErrorType type);

	public void showErrorView(ErrorType type, String alertText,
							  View.OnClickListener lsn);

	public void showErrorView(ErrorType type, int iconRes, String alertText,
							  View.OnClickListener lsn);

	public void hideErrorView();
	
	public void setDefaultBackActoin(OnClickListener lsn);

	public void showCloseButton(boolean show, OnClickListener lsn);
}
